-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add ability to set declination of phase center #146
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #146 +/- ##
==========================================
+ Coverage 98.59% 98.60% +0.01%
==========================================
Files 15 15
Lines 1068 1076 +8
==========================================
+ Hits 1053 1061 +8
Misses 15 15 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Thanks @steven-murray, this looks like a great addition. Summarizing to check I understand the changes:
The new code does indeed change UV bins: I am a little suspicious though, as |
(thinking more about it: I didn't change the beam, and SEFD will increase for off-zenith pointings with an aperture array. I guess those effects are not accounted for in my simple example?) Update: looks like increasing the beam width will decrease the sensitivity, accounting for decreased projected area. I used a Gaussian beam for my test above, and didn't change its width between the two simulations, hence the odd outcome. |
@telegraphic thanks for the review! So, yes your outline is correct. I have not touched the beam/SEFD in this PR -- though perhaps it's necessary to obtain reasonable results. Currently we don't have the infrastructure to be able to have a beam whose projected area changes over the course of an observation, however we could at least change the area to be consistent with the projected area when the phase center is as close to the zenith as possible? |
Yeah, we've kind of always neglected the primary beam response when considering tracked observations. The argument was always that you've either got a steerable dish (and hence the SEFD can stay constant as you follow the field) or you've got an aperture array where you're beamforming (in which case there is an increase of the SEFD off-zenith, but it's small since it's set by the primary beam of a single dipole, not the station/tile, and those are very wide). Realistically you would want to account for it, but I think it's a pretty big change to the inner workings of 21cmSense to make it work. |
@telegraphic are you happy for this PR to be merged? We could attempt to implement a changing beam area as a function of pointing, but I'm not sure how much it will affect results in realistic cases (where you're not pointing at the horizon...), and it would be a reasonably involved bit of work. |
Hi @steven-murray, yes happy for this to be merged. As @jpober mentioned, for a steerable dish the SEFD would not change, so it seems reasonable to leave to the user to implement any change in beam characteristics by subclassing FYI, I have used this branch for the SKA-Low EoR sensitivity calculator prototype @ https://github.com/ska-sci-ops/ska-ost-eor-senscalc |
@jpober we're missing your review. If you're also happy with the changes, we can merge it after your approval. Thanks. |
Sorry, didn't realize I was blocking it. I'll try to have a look tomorrow! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment but everything else looks great.
Adds the ability to set the declination of the phase center of the observation, and adjust the apparent UVWs accordingly.